
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon iconfont icon-success"></i>
                    <div class="name">成功</div>
                    <div class="fontclass">.icon-success</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-shijian"></i>
                    <div class="name">时间</div>
                    <div class="fontclass">.icon-shijian</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-shanchu1"></i>
                    <div class="name">删除</div>
                    <div class="fontclass">.icon-shanchu1</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-kong"></i>
                    <div class="name">空</div>
                    <div class="fontclass">.icon-kong</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-all_close"></i>
                    <div class="name">all_close</div>
                    <div class="fontclass">.icon-all_close</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-login_password"></i>
                    <div class="name">login_password</div>
                    <div class="fontclass">.icon-login_password</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-login_phone"></i>
                    <div class="name">login_phone</div>
                    <div class="fontclass">.icon-login_phone</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-dizhi"></i>
                    <div class="name">地址</div>
                    <div class="fontclass">.icon-dizhi</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-danxuan"></i>
                    <div class="name">单选</div>
                    <div class="fontclass">.icon-danxuan</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-enter"></i>
                    <div class="name">enter</div>
                    <div class="fontclass">.icon-enter</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-wait"></i>
                    <div class="name">wait</div>
                    <div class="fontclass">.icon-wait</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-sex_girl"></i>
                    <div class="name">sex_girl</div>
                    <div class="fontclass">.icon-sex_girl</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-sex_boy"></i>
                    <div class="name">sex_boy</div>
                    <div class="fontclass">.icon-sex_boy</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-jujue"></i>
                    <div class="name">拒绝</div>
                    <div class="fontclass">.icon-jujue</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-radio_pressed"></i>
                    <div class="name">radio_pressed</div>
                    <div class="fontclass">.icon-radio_pressed</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-radio_normal"></i>
                    <div class="name">radio_normal</div>
                    <div class="fontclass">.icon-radio_normal</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-duoxuan1"></i>
                    <div class="name">多选</div>
                    <div class="fontclass">.icon-duoxuan1</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-duoxuanweixuan"></i>
                    <div class="name">多选－未选</div>
                    <div class="fontclass">.icon-duoxuanweixuan</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-tabbar_icon_pressed"></i>
                    <div class="name">tabbar_icon2_pressed</div>
                    <div class="fontclass">.icon-tabbar_icon_pressed</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-tabbar_icon_normal"></i>
                    <div class="name">tabbar_icon1_normal</div>
                    <div class="fontclass">.icon-tabbar_icon_normal</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-tabbar_icon_pressed1"></i>
                    <div class="name">tabbar_icon1_pressed</div>
                    <div class="fontclass">.icon-tabbar_icon_pressed1</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-tabbar_icon_normal1"></i>
                    <div class="name">tabbar_icon4_normal</div>
                    <div class="fontclass">.icon-tabbar_icon_normal1</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-tabbar_icon_pressed2"></i>
                    <div class="name">tabbar_icon4_pressed</div>
                    <div class="fontclass">.icon-tabbar_icon_pressed2</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-tabbar_icon_normal2"></i>
                    <div class="name">tabbar_icon2_normal</div>
                    <div class="fontclass">.icon-tabbar_icon_normal2</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-tabbar_icon_pressed3"></i>
                    <div class="name">tabbar_icon5_pressed</div>
                    <div class="fontclass">.icon-tabbar_icon_pressed3</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-tabbar_icon_normal3"></i>
                    <div class="name">tabbar_icon5_normal</div>
                    <div class="fontclass">.icon-tabbar_icon_normal3</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-all_sclose"></i>
                    <div class="name">all_sclose</div>
                    <div class="fontclass">.icon-all_sclose</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-arrow_down"></i>
                    <div class="name">arrow_down</div>
                    <div class="fontclass">.icon-arrow_down</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-add"></i>
                    <div class="name">add</div>
                    <div class="fontclass">.icon-add</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-back"></i>
                    <div class="name">back</div>
                    <div class="fontclass">.icon-back</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-collect_normal"></i>
                    <div class="name">collect_normal</div>
                    <div class="fontclass">.icon-collect_normal</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-arrow_up"></i>
                    <div class="name">arrow_up</div>
                    <div class="fontclass">.icon-arrow_up</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-search"></i>
                    <div class="name">search</div>
                    <div class="fontclass">.icon-search</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-share"></i>
                    <div class="name">share</div>
                    <div class="fontclass">.icon-share</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-collect_pressed"></i>
                    <div class="name">collect_pressed</div>
                    <div class="fontclass">.icon-collect_pressed</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-triangle_right"></i>
                    <div class="name">triangle_right</div>
                    <div class="fontclass">.icon-triangle_right</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-integral"></i>
                    <div class="name">integral</div>
                    <div class="fontclass">.icon-integral</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-putaway"></i>
                    <div class="name">putaway</div>
                    <div class="fontclass">.icon-putaway</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-problem"></i>
                    <div class="name">problem</div>
                    <div class="fontclass">.icon-problem</div>
                </li>
            
        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
